﻿using EONFULLSIN2.Models.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EONFULLSIN2.Models.Attributes
{
    /// <summary>
    /// 点位配置特性基类
    /// </summary>
    [AttributeUsage(
        AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.Method | AttributeTargets.Class,
        AllowMultiple = false)]
    public class BasePointAttribute : Attribute
    {
        /// <summary>
        /// 名称
        /// </summary>
        public required string Name { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public required string Description { get; set; }

        /// <summary>
        /// 通道Index
        /// </summary>
        public required int ChannelIndex { get; set; }

        /// <summary>
        /// 通道名称
        /// </summary>
        public required string ChannelName { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public required bool IsEnable { get; set; }
    }

}
